package com.weixing.mall.provider.model.dto;

import com.weixing.mall.provider.model.enums.GoodsStateEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Author wx
 * @Date 2019/8/15 10:41
 * @Version 1.0
 */
@Data
@ApiModel(value = "商品上下架")
@AllArgsConstructor
public class GoodsChangeStatusDto {
    @ApiModelProperty(value = "商品Id")
    @NotNull(message = "商品Id不能为空")
    private Long goodsId;

    @ApiModelProperty(value = "上架/下架")
    @NotNull(message = "请输入正确的状态")
    private GoodsStateEnum goodsEnum;
}
